-- GENERATED SPELL FOR [Bonechewer Worker] --


function spell0_22963(pUnit, Event) --@Throw Pick,n/a--
pUnit:FullCastSpellOnTarget(40844,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22963', 500, 1)
end

function Sorts_22963(pUnit, Event)
local choix_sorts_22963 = math.random(0, 0)
if choix_sorts_22963 == 0 then
pUnit:RegisterEvent('spell0_22963', 1, 1)
end
end

function mob22963_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22963', math.random(1500, 3000), 1)
end

function mob22963_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22963_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22963_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22963, 1, 'mob22963_Action')
RegisterUnitEvent(22963, 2, 'mob22963_Leave')
RegisterUnitEvent(22963, 3, 'mob22963_Kill')
RegisterUnitEvent(22963, 4, 'mob22963_Die')
